#include "app_deviece.h"
#include "log/log.h"
#include "unistd.h"
#include "app_bt.h"
int main(void)
{
    //初始化设备
   Device *device = app_device_init("/home/lt/桌面/gatway_lt/test_dev_file");
    // log_debug("--------------01");
    //初始化蓝牙
    app_bt_init(device);
    //启动设备
    app_device_start();
    // log_debug("--------------02");
    //休眠一定的时间
    sleep(100);
    //关闭设备
    // log_debug("--------------03");
    app_device_destroy();
    return 0;
}